package com.df.blueben.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum NoteStateEnum {

    //审核中
    AUDITING(0,"审核中"),
    //审核通过
    AUDIT_PASS(1,"审核通过"),
    //审核不通过
    AUDIT_NOT_PASS(2,"审核不通过");

    private Integer value;

    private String desc;
    public static NoteStateEnum getNoteStateEnum(Integer value){
        for(NoteStateEnum noteStateEnum : NoteStateEnum.values()){
            if(noteStateEnum.getValue().equals(value)){
                return noteStateEnum;
            }
        }
        return null;
    }

}
